<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>后台管理</title>
<style type="text/css">

    #container {
    margin:0 auto;
	height:680px;
	width:960px;
}
#main{
	padding:0px;
}
#left {
	width: 220px;
	float: left;
	height: 500px;
	margin-left:20px;

	border:gray 1px solid;
}
#menulist {
	list-style-type: none;
	float:left;
	line-height: 30px;
}
#right {
	width: 710px;
	float: right;
	height: 500px;
	margin-right:0px;
	border:gray 1px solid;
}
#lefttop{
	padding:10px;
	height:20px;
	background-color: blue;
	font-family:"微软雅黑";
	font-size:16px;
	font-weight:bold;
	color: black;
	}
	#funcnavi{
		padding:10px;
	height:20px;
	background-color: blue;
	font-family:"微软雅黑";
	font-size:16px;
	font-weight:bold;
	color: black;

	}
</style>
<% 
	String mainpage=(String)request.getAttribute("mainpage");
	if(mainpage==null || mainpage.equals("")){
		mainpage="default.jsp";
	}

%>
</head>
<body>
<div id="container">

		<jsp:include page="head.jsp"></jsp:include>
	
	<div id="main">
	<div id="left">
	<div id="lefttop"><span>功能列表</span></div>
		<ul id="menulist">
			<li></li>
			<li><a href="categoryadd.do">增加分类</a></li>
<li><a href="categorymanager.do">管理分类</a></li>
<li><a href="usermanager.do">用户管理</a></li>
<li><a href="goodsmanager.do">显示所有商品</a></li>
<li><a href="goodsinfo.do">显示单个商品</a></li>
<li><a href="showgoods.do">展示所有商品</a></li>

		<li></li>
		</ul>
	</div>
	<div id="right">
	<div id="funcnavi">${naviCode }</div>
	  <jsp:include page="<%=mainpage %>"></jsp:include>
    </div>
	
	</div>

	<jsp:include page="foot.jsp"></jsp:include>

</div>

</body>
</html>